<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>普通用户-图书管理系统</title>
    <link href="/layui/css/layui.css" rel="stylesheet"/>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">

    <div th:include="common/user_header :: header"></div>

    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree">

                <li class="layui-nav-item ">
                    <a class="" href="javascript:;">借阅管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/userBorrowBookRecord">&emsp;&emsp;借书记录</a></dd>
                        <dd><a href="/borrowingPage">&emsp;&emsp;借阅书籍</a></dd>
                    </dl>
                </li>

                <li class="layui-nav-item">
                    <a class="" href="javascript:;">书籍管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/userReturnBooksPage">&emsp;&emsp;归还书籍</a></dd>
                        <dd><a href="/findBookPage">&emsp;&emsp;查询书籍</a></dd>
                        <dd><a href="/findAppoint">&emsp;&emsp;预约书籍</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="/userMessagePage">个人信息</a></li>

                <li class="layui-nav-item layui-nav-itemed"><a class="" href="/addMessage">留言板</a></li>
                <li class="layui-nav-item layui-nav-itemed"><a class="" href="/showEvaluate">用户评价</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body layui-container">

        <hr class="layui-bg-blue">
        <h3 style="font-size: xx-large; text-align: center"> 留言板 </h3>
        <hr class="layui-bg-blue">

        <div>
            <input class=" layui-input-block" placeholder="请输入留言" autocomplete="off" autofocus
                   id="bookId" type="text" name="bookId">

            <button class="layui-btn layui-bg-blue" id="btn1">新增留言</button>
        </div>


        <table class="layui-table ">
            <thead>
            <tr>
                <th>序号</th>
                <th>留言内容</th>
                <th>留言人</th>
                <th>留言日期</th>
                <th>管理员回复</th>
                <th>管理员姓名</th>
                <th>回复日期</th>
            </tr>
            </thead>

            <tr th:each="message : ${messagesList}">
                <td><label th:text="${message.getId()}"></label></td>
                <td><label th:text="${message.getText()}"></label></td>
                <td><label th:text="${message.getAddUser()}"></label></td>
                <td><label th:text="${message.getTime()}"></label></td>

                <td><label th:text="${message.getAdminUser()}"></label></td>
                <td><label th:text="${message.getAdminText()}"></label></td>
                <td><label th:text="${message.getReTime()}"></label></td>

            </tr>
        </table>
    </div>

    <div th:include="common/footer :: footer"></div>

</div>

<script src="/scripts/jquery.min.js"></script>
<script src="/layui/layui.js"></script>
<script src="/scripts/user/addMessage.js"></script>

</body>
</html>




